import 'normalize.css'
import Vue from 'vue'
import App from './App.vue'
import router from './router/index.js'
import store from './store/index.js'

// 导入全局样式
import '@/assets/styles/reset.less'

import $ from 'jquery';
Vue.prototype._$ = $;
window.$ = $;

let dayjs = require('dayjs');
Vue.prototype.$dayjs = dayjs;

// 引入 Element UI
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'

// 使用 Element UI
Vue.use(ElementUI)

import directives from '@/directives/index.js'
Vue.use(directives)

Vue.config.productionTip = false

new Vue({
  router,
  store,
  render: h => h(App),
}).$mount('#app')
